package com.candiq.actions;

import com.opensymphony.xwork.ActionContext;
import com.opensymphony.xwork.ActionSupport;

public class HelloAction extends ActionSupport {

	private String id = "123";

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		if (id == "123") {
			return INPUT;
		} else {
			return SUCCESS;
		}
	}

}
